<?php


namespace app\middleware;


use Webman\Http\Request;
use Webman\Http\Response;
use Webman\MiddlewareInterface;

class ActionMiddleware implements MiddlewareInterface
{

    /**
     * @inheritDoc
     */
    public function process(Request $request, callable $handler): Response
    {

       $action = $request->plugin;
        var_export(1111);
        $response = $handler($request); // 继续向洋葱芯穿越，直至执行控制器得到响应

        return $response;
    }
}